.js-box{
  padding:0px 10px;
  user-select: none;
  overflow-x: hidden;
}

.jsDiv{
  width: 49.5%;
  // max-height: 450px;
  height: 400px;
  overflow: hidden;
  margin-top: 10px;
  // position: sticky;
  top: 10px;
  border-radius: 8px;
  filter: drop-shadow(0px 0px 4px rgba(0, 122, 244, 0.4));

  .p-title{
    background:rgb(84, 92, 100);
    color: rgb(255, 208, 75);
    padding: 0px 10px;
    position: sticky;
    top: 0px;
    height: 50px;
    line-height: 50px;
    border-radius:8px 8px 0px 0px;
    z-index: 2;
    .title,.lookCode{
      margin: 0px;
    }
    .lookCode{
      cursor: pointer;
      transition: 0.4s;
      &:hover{
        color: #fff;
      }
      &::before{
        content: '</>';
      }
    }
  }

  .leftOrright{
    display: flex;
    width: 200%;
    height: calc(100% - 50px);
    transition: 0.4s;
  }
  .height-300{
    width: 50%;
  }
  .js-main{
    border: 2px solid #545c64;
    border-top: none;
    border-radius: 0px 0px 8px 8px;
    width: 50%;
    .demo{
      width: calc(100% - 200px);
      height: 100%;
      overflow: auto;
      background-color: #fff;
      padding: 10px;
      border-right:1px solid #545c64;
    }
    .depict{
      width: 200px;
      background: #fff;
      padding: 10px;
      overflow: auto;
      ul{
        li{
          margin-top: 10px;
          line-height: 26px;
        }
      }
    }
  }
}

.titleBefore{
  cursor: pointer;
  transition: all 0.4s;
  &:hover{
    color: #fff;
  }
}

.translateLeft{
  transform: translate(-50%);
}